package com.itheima.App;

import com.itheima.Dao.OrderDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Orderteat {
    public static void main(String[] args) {
        ApplicationContext cs = new ClassPathXmlApplicationContext("applicationContext.xml");
        OrderDao orderdao = (OrderDao) cs.getBean("orderdao");
        orderdao.order();
        //bean静态工厂实例化
    }
}
